package com.carsite;


/**
 * Constant values used throughout the application.
 *
 * <p>
 * <a href="Constants.java.html"><i>View Source</i></a>
 * </p>
 *
 * @author <a href="mailto:matt@raibledesigns.com">Matt Raible</a>
 */
public class Constants {
    //~ Static fields/initializers =============================================
   
    /** The name of the ResourceBundle used in this application */
    public static final String BUNDLE_KEY = "ApplicationResources";

    /** The encryption algorithm key to be used for passwords */
    public static final String ENC_ALGORITHM = "algorithm";

    /** A flag to indicate if passwords should be encrypted */
    public static final String ENCRYPT_PASSWORD = "encryptPassword";

    /** File separator from System properties */
    public static final String FILE_SEP = System.getProperty("file.separator");

    /** User home from System properties */
    public static final String USER_HOME = System.getProperty("user.home") + FILE_SEP;

    /** The name of the configuration hashmap stored in application scope. */
    public static final String CONFIG = "appConfig";

    /** 
     * Session scope attribute that holds the locale set by the user. By setting this key
     * to the same one that Struts uses, we get synchronization in Struts w/o having
     * to do extra work or have two session-level variables.
     */ 
    public static final String PREFERRED_LOCALE_KEY = "org.apache.struts.action.LOCALE";
    
    /**
     * The request scope attribute under which an editable user form is stored
     */
    public static final String USER_KEY = "userForm";

    /**
     * The request scope attribute that holds the user list
     */
    public static final String USER_LIST = "userList";

    /**
     * The request scope attribute for indicating a newly-registered user
     */
    public static final String REGISTERED = "registered";

    /**
     * The name of the Administrator role, as specified in web.xml
     */
    public static final String ADMIN_ROLE = "admin";

    /**
     * The name of the User role, as specified in web.xml
     */
    public static final String USER_ROLE = "user";

    /**
     * The name of the user's role list, a request-scoped attribute
     * when adding/editing a user.
     */
    public static final String USER_ROLES = "userRoles";

    /**
     * The name of the available roles list, a request-scoped attribute
     * when adding/editing a user.
     */
    public static final String AVAILABLE_ROLES = "availableRoles";

 
//  Role-START
      /**
       * The request scope attribute that holds the role form.
       */
      public static final String ROLE_KEY = "roleForm";

      /**
       * The request scope attribute that holds the role list
       */
      public static final String ROLE_LIST = "roleList";
//  Role-END

//Task-START
    /**
     * The request scope attribute that holds the task form.
     */
    public static final String TASK_KEY = "taskForm";

    /**
     * The request scope attribute that holds the task list
     */
    public static final String TASK_LIST = "taskList";
//Task-END

 


 





 
//NewsArticle-START
    /**
     * The request scope attribute that holds the newsArticle form.
     */
    public static final String NEWSARTICLE_KEY = "newsArticleForm";

    /**
     * The request scope attribute that holds the newsArticle list
     */
    public static final String NEWSARTICLE_LIST = "newsArticleList";
//NewsArticle-END

//SysFile-START
    /**
     * The request scope attribute that holds the sysFile form.
     */
    public static final String SYSFILE_KEY = "sysFileForm";

    /**
     * The request scope attribute that holds the sysFile list
     */
    public static final String SYSFILE_LIST = "sysFileList";
//SysFile-END
 
 
//Branch-START
    /**
     * The request scope attribute that holds the branch form.
     */
    public static final String BRANCH_KEY = "branchForm";

    /**
     * The request scope attribute that holds the branch list
     */
    public static final String BRANCH_LIST = "branchList";
//Branch-END

//Department-START
    /**
     * The request scope attribute that holds the department form.
     */
    public static final String DEPARTMENT_KEY = "departmentForm";

    /**
     * The request scope attribute that holds the department list
     */
    public static final String DEPARTMENT_LIST = "departmentList";
//Department-END  
//ModuleMenu-START
    /**
     * The request scope attribute that holds the moduleMenu form.
     */
    public static final String MODULEMENU_KEY = "moduleMenuForm";

    /**
     * The request scope attribute that holds the moduleMenu list
     */
    public static final String MODULEMENU_LIST = "moduleMenuList";
//ModuleMenu-END  

//SysFileName-START
    /**
     * The request scope attribute that holds the sysFileName form.
     */
    public static final String SYSFILENAME_KEY = "sysFileNameForm";

    /**
     * The request scope attribute that holds the sysFileName list
     */
    public static final String SYSFILENAME_LIST = "sysFileNameList";
//SysFileName-END

//Material-START
    /**
     * The request scope attribute that holds the material form.
     */
    public static final String MATERIAL_KEY = "materialForm";

    /**
     * The request scope attribute that holds the material list
     */
    public static final String MATERIAL_LIST = "materialList";
//Material-END

//Product-START
    /**
     * The request scope attribute that holds the product form.
     */
    public static final String PRODUCT_KEY = "productForm";

    /**
     * The request scope attribute that holds the product list
     */
    public static final String PRODUCT_LIST = "productList";
//Product-END

//Item-START
    /**
     * The request scope attribute that holds the item form.
     */
    public static final String ITEM_KEY = "itemForm";

    /**
     * The request scope attribute that holds the item list
     */
    public static final String ITEM_LIST = "itemList";
//Item-END

//Order-START
    /**
     * The request scope attribute that holds the order form.
     */
    public static final String ORDER_KEY = "orderForm";

    /**
     * The request scope attribute that holds the order list
     */
    public static final String ORDER_LIST = "orderList";
//Order-END

//CheckTable-START
    /**
     * The request scope attribute that holds the checkTable form.
     */
    public static final String CHECKTABLE_KEY = "checkTableForm";

    /**
     * The request scope attribute that holds the checkTable list
     */
    public static final String CHECKTABLE_LIST = "checkTableList";
//CheckTable-END

//OrderNo-START
    /**
     * The request scope attribute that holds the orderNo form.
     */
    public static final String ORDERNO_KEY = "orderNoForm";

    /**
     * The request scope attribute that holds the orderNo list
     */
    public static final String ORDERNO_LIST = "orderNoList";
//OrderNo-END

}











